package com.arpa.ntocc.common.domain.enums;

/**
 * 图片类型枚举
 * code前两位代表大类后三位为具体分类<br>
 * 编码示例<br>
 * 注：int 数据类型问题 请不要 以 0开头<br>
 * 10000 10001 10002 10开头为货源单相关 <br>
 * 20000 20001 20002 20开头为运输单相关<br>
 * 30000 30001 30002 30开头为用户相关<br>
 * 40000 40001 40002 40开头为司机相关<br>
 * 50000 50001 50002 50开头为网站广告相关<br>
 * 60000 60001 60002 60开头为系统参数相关<br>
 * 70000 70001 70002 70开头为车辆相关<br>
 * @author Lhy
 */
public enum FileInfoType {

    /**
     * 运输单装货图片
     */
    FILL_IMAGE(20001, "fillImage", "运输单装货图片"),

    /**
     * 运输单卸货图片
     */
    UNLOAD_IMG(20002, "unloadImgUrl", "运输单卸货图片"),

    /**
     * 运输单异常图片
     */
    ABNORMAL_IMG(20003, "abnormalImg", "运输单投诉图片"),

    /**
     * 运输单回单图片
     */
    RECEIPT_IMG(20004, "receiptImg", "运输单回单图片"),

    INSURE_PDF(20005, "insurePDF", "运单保单明细PDF文件"),

    COMMENT_IMG(20006, "commentImg", "运单评论图片"),

    ORDER_DETAIL_CONTRACT_PDF(20007, "contractPath", "运输合同PDF文件"),

    TRANSPORT_ABNORMAL_IMG(20008, "sceneImg", "运输异常照片"),


    HEAD_IMG(30001, "headImg", "用户头像"),
    ID_IMG(30005, "idImg", "身份证正面照"),
    ID_BACK_IMG(30006, "idBackImg", "身份证背面照"),
    ID_INHAND_IMG(30007, "idInhandImg", "身份证手持照片"),
    LICENSE_IMG(30008, "licenseImg", "营业执照照片"),

    /**
     * 仓储合同上传
     */
    WMS_CONTRACT_FILE(90001, "wmsContractFile","仓储合同"),

    /**
     * 司机相关图片
     */
    INVOICE_IMG(40001, "invoiceImg", "发票图片"),
    DRIVER_IMG(40002, "driverImg", "司机照片"),
    IDENTIFICATION_IMG(40003, "identificationImg", "司机身份证"),
    IDENTIFICATION_BACK_IMG(40004, "identificationBackImg", "司机身份证反面照片"),
    WORK_LICENSE_IMG(40005, "workLicenseImg", "从业资格证照片"),
    DRIVER_LICENSE_IMG(40006, "driverLicenseImg", "司机驾驶证图片"),
    BUSINESS_LICENSE_IMG(40007, "businessLicenseImg", "营业执照照片"),
    ROAD_PERMIT_NUMBER_IMG(40008, "roadPermitNumberImg", "道路经营许可证照片"),

    /**
     * 车辆相关
     */
    ROAD_TRANSPORT_CERTIFICATE_IMG(70001, "roadTransportCertificateImg", "道路运输许可证照片"),
    VEHICLE_LICENSE_IMG(70002, "vehicle_license_img", "车辆行驶证"),
    VEHICLE_IMG(70003, "vehicleImg", "车辆照片"),
    TRAILER_VEHICLE_LICENSE_IMG(70004, "trailerVehicleLicenseImg", "挂车行驶证照片"),
    TRAILER_ROAD_TRANSPORT_CERTIFICATE_IMG(70005, "trailerRoadTransportCertificateImg", "挂车道路运输证照片"),
    TRAILER_VEHICLE_IMG(70006, "trailerVehicleImg", "挂车照片"),

    SITE_BANNER(50001, "siteBanner", "banner图片"),
    SITE_SITE(50002, "siteSite", "门户图片"),
    SITE_APP(50003, "siteApp", "app预览图片"),
    SITE_NEWS(50004, "siteNews", "新闻图片"),
    SITE_PARTNER(50005, "sitePartner", "合作伙伴图片"),

    BRANCH_SETTING(60001, "branchSetting", "系统参数");
    //BRANCH_INVOICE(60002, "branchInvoice", "开票信息")

    private final int code;
    private final String field;
    private final String remark;

    /**
     * @param code 类型编码
     * @param field 字段名称
     * @param remark 备注信息
     */
    FileInfoType(int code, String field, String remark) {
        this.code = code;
        this.field = field;
        this.remark = remark;
    }

    public int getCode() {
        return code;
    }

    public String getField() {
        return field;
    }

    public String getRemark() {
        return remark;
    }


}
